package com.ws.service.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ws.bean.Customer;
import com.ws.dao.CustomerDao;
import com.ws.service.CustomerService;
import com.ws.util.Page;
@Service
public class CustomerServiceImp implements CustomerService {
	
	@Autowired
	CustomerDao dao;

	@Override
	public List<Customer> getCustomer(Customer customer, Page page) {
		return dao.getCustomer(customer,page);
	}

	@Override
	public int getCount(Customer customer) {
		return dao.getCount(customer);
	}

	@Override
	public int delCustomer(Integer id) {
		return dao.delCustomer(id);
	}

	@Override
	public int editCustomer(Customer customer) {
		return dao.editCustomer(customer);
	}

	@Override
	public int addCustomer(Customer customer) {
		return dao.addCustomer(customer);
	}
}
